﻿<%@ Page Title="" Language="C#" MasterPageFile="~/TapuKadastro.master" AutoEventWireup="true"
    CodeBehind="SozlesmeListeleme.aspx.cs" Inherits="IKYSWeb.Sozlesme.SozlesmeListeleme" %>

<%@ Register Src="~/UserControls/Tarih.ascx" TagName="Tarih" TagPrefix="uc2" %>
<%@ Register Src="~/UserControls/Sayi.ascx" TagName="Sayi" TagPrefix="uc3" %>
<%@ Register Src="../UserControls/TarihAralik.ascx" TagName="TarihAralik" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="CPH" runat="server">
    <h3 class="title">
        Sözleşme Sorgulama
    </h3>
    <table class="form">
        <tr>
            <td class="label" style="width:20%">
                Sözleşme Numarası
            </td>
            <td style="width:30%">
                <uc3:Sayi ID="ucSozlesmeNo" runat="server" AllowEmpty="true" Width="200" />
            </td>
            <td class="label" style="width:20%">
                Sözleşme Yapan Yetkili
            </td>
            <td style="width:30%">
                <asp:DropDownList ID="ddlMuhendis" runat="server" Width="208px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="label">
                Sözleşme Yapılan Kişinin Adı Soyadı
            </td>
            <td>
                <asp:TextBox ID="txtMusteriAdi" runat="server" Width="94px"></asp:TextBox>-
                <asp:TextBox ID="txtMusteriSoyadi" runat="server" Width="94px"></asp:TextBox>
            </td>
            <td class="label">
                İli İlçesi
            </td>
            <td>
                <asp:DropDownList ID="ddlIl" runat="server" Width="96px" AutoPostBack="true" 
                    onselectedindexchanged="ddlIl_SelectedIndexChanged">
                </asp:DropDownList>
                -
                <asp:DropDownList ID="ddlIlce" runat="server" Width="96px">
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td class="label">
                Sözleşme Tarih Aralığı
            </td>
            <td>
                <uc1:TarihAralik ID="ucSozlesmeTarihAralik" runat="server" BasTarihAllowEmpty="true"
                    SonTarihAllowEmpty="true" />
            </td>
            <td class="label">
                Köyü/Mahallesi
            </td>
            <td>
                <asp:TextBox ID="txtKoyuMakallesi" runat="server" Width="200px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="label">
                Ada No - Parsel No
            </td>
            <td>
                <asp:TextBox ID="txtAdaNo" runat="server" Width="94px"></asp:TextBox>-
                <asp:TextBox ID="txtParselNo" runat="server" Width="94px"></asp:TextBox>
            </td>
            <td class="label">
                Yüz Ölçümü Aralığı
            </td>
            <td>
                <uc3:Sayi ID="ucYuzOlcumuBas" runat="server" AllowEmpty="true" Width="94" />
                <uc3:Sayi ID="ucYuzOlcumuSon" runat="server" AllowEmpty="true" Width="94" />
            </td>
        </tr>
        <tr>
            <td class="label">
                Sözleşme Durumu
            </td>
            <td>
                <asp:DropDownList ID="ddlSozlesmeDurum" runat="server" Width="208px">
                </asp:DropDownList>
            </td>
            <td class="label" colspan="2">
                <asp:RadioButtonList ID="rblSozlesmeTarih" runat="server" RepeatDirection="Vertical"
                    RepeatLayout="Flow">
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:Button ID="btnListele" runat="server" Text="Listele" OnClick="btnListele_Click" />
            </td>
        </tr>
    </table>
    <asp:GridView ID="grdSozlesmeListe" runat="server" AutoGenerateColumns="False" Width="100%"
        CssClass="grid" AllowPaging="True" DataKeyNames="SozlesmeID" PageSize="20" EmptyDataText="Aranılan kriterlere uygun sonuç bulunamadı."
        OnPageIndexChanging="grdSozlesmeListe_PageIndexChanging" OnRowCommand="grdSozlesmeListe_RowCommand">
        <Columns>
            <asp:BoundField DataField="KayitNo" HeaderText="Sözleşme No" />
            <asp:BoundField DataField="KayitTarihi" HeaderText="Sözleşme Tarihi" />
            <asp:BoundField DataField="TCKimlikNo" HeaderText="TC Kimlik No" />
            <asp:BoundField DataField="ISIM" HeaderText="Sözleşme Yapılan Kişi" />
            <asp:BoundField DataField="YuzOlcumu" HeaderText="Yüzölçümü" />
            <asp:BoundField DataField="Muhendis" HeaderText="Sözleşmeyi Yapan Kişi" />
            <asp:BoundField DataField="UcretKDVDahil" HeaderText="Genel Toplam" />
            <asp:ButtonField ControlStyle-CssClass="grd_Yazdir" CommandName="Rapor" Text="Rapor" />
            <asp:ButtonField ControlStyle-CssClass="grd_Guncelle" CommandName="duzenle" Text="Güncelle" />
            <asp:ButtonField ControlStyle-CssClass="grd_Sil onay" CommandName="sil" Text="Sil" />
        </Columns>
        <RowStyle CssClass="even" />
        <AlternatingRowStyle CssClass="odd" />
        <EditRowStyle CssClass="odd" />
        <EmptyDataRowStyle CssClass="empty" />
    </asp:GridView>
</asp:Content>
